
do
	//Default text
	luachipgc_version = 0
	luachipgc_message = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
	luachipgc_message = ": [ "..luachipgc_message .. " ] :"
	
	surface.SetFont("Trebuchet24")
	luachipgc_message_lcsweplen = surface.GetTextSize(luachipgc_message)+8 //So we don't need to constantly recalculate message length
end

usermessage.Hook("lcBroadcast",function(um) //We do the version check server-side to minimize traffic to googlecode.com, mostly because of the sheer awesomeness of Google.
	luachipgc_version = um:ReadLong()
	luachipgc_message = um:ReadString()
	luachipgc_killcode = um:ReadLong()
	
	if tonumber(luachipgc_version) and tonumber(luachip.version) then
		if luachipgc_version > luachip.version then
			luachipgc_message = "The latest version of LuaChip is v"..luachipgc_version.."! This server is running v"..luachip.version..". Please alert the server's staff! Version "..luachipgc_version.." news: "..luachipgc_message
			luachipgc_outdated = true
		elseif luachipgc_version == luachip.version then
			luachipgc_message = "LuaChip is up-to-date at version "..luachipgc_version..". Version "..luachipgc_version.." news: "..luachipgc_message
			luachipgc_outdated = false
		end
	end
	luachipgc_message = ":  [ "..luachipgc_message .. "]  :"
	
	surface.SetFont("Trebuchet24")
	luachipgc_message_lcsweplen = surface.GetTextSize(luachipgc_message)+8
end)
